package com.chzn.config;

import org.springframework.context.MessageSource;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.support.ResourceBundleMessageSource;
import org.springframework.core.annotation.Order;

/**
 * @Description
 * @Author houchenkai
 * @Created Date: 2020/10/22 18:36
 * @ClassName
 */
@ComponentScan("com.chzn")
@Order
//@Import(MyImportBeanDefinitionRegistrar.class)
public class AppConfig {


	public MessageSource messageSource() {
		ResourceBundleMessageSource resourceBundleMessageSource = new ResourceBundleMessageSource();
		resourceBundleMessageSource.setBasename("messages");
		return resourceBundleMessageSource;
	}


}

